
<div class="page-nav">Pagina: <?php echo $pagenav; ?></div>

<table class="list" style="text-align: left; width: 100%;" border="1" cellpadding="0" cellspacing="0">
<tbody>
  <tr>
    <th class="list">Nr</th>
    <th class="list">Aangemaakt</th>
    <th class="list">Naam</th>
    <th class="list">Bedrijf</th>
    <th class="list">Subtotaal</th>
    <th class="list">Totaal</th>
    <th class="list">Afgewerkt</th>
    <th class="list options">Opties</th>
</tr>
<?php
	$i = 0;
	foreach( $items as &$order )
	{
?>
<tr>
  <td class="list"><?php echo $order->getDispId(); ?></td>
  <td class="list"><?php echo $order->getTimestamp()->show('d - m - Y'); ?></td>
  <td class="list"><?php echo $order->getClientInfo()->getName(); ?><br></td>
  <td class="list"><?php echo $order->getClientInfo()->getCompany(); ?><br></td>
  <td class="list price">&#8364; <?php echo $order->printSubtotal(); ?><br></td>
  <td class="list price">&#8364; <?php echo $order->printTotal(); ?></td>
  <td class="list">
    <img alt="status" src="images/<?php
      if($order->finished())
        echo "thumbs-up.gif";
      else
        echo "warning.png"; ?>">
  </td> 
  <td class="list options">
    <a href="edit.php?mode=edit&id=<?php echo $order->getId(); ?>" title="Bewerk deze factuur">
      <img src="images/edit.png" border="0">
    </a>
    <a href="pdf.php?&id=<?php echo $order->getId(); ?>" title="Deze factuur weergeven in pdf" target="_blank">
      <img src="images/pdf.png" border="0">
    </a>
  </td>
</tr>
<?php		
		$i++;
} if( count($items)<1 ) { ?>
	<tr>
		<td colspan="8"><i>Niets in de lijst.</i></td>
	</tr>
<?php } ?>
</tbody>
</table>
<div class="page-nav">Pagina: <?php echo $pagenav; ?></div>